package cn.bluethink.eguan.model.core;

import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import cn.bluethink.eguan.utils.DateTimeSerializer;

/**
 * 系统文件模型
 * 
 * @author 苏州中科蓝迪公司所有(c)2016-2021
 * @version 0.3.0
 * @brief 驿馆+产品
 * @note 修订历史： 1.wanglei于2018/12/20设计并构建初始版本v0.3.0
 */
public class EgFile extends EgObject {

    /**
     * 文件唯一标识
     */
    private String file;

    /**
     * 文件所在位置对象
     */
    private EgObject pos;

    /**
     * 文件的上传者
     */
    private EgUser uploader;

    /**
     * 文件的上传时间
     */
    @JsonSerialize(using = DateTimeSerializer.class)
    private Date ctime;

    public EgFile() {

    }

    public EgFile(Long id, String name, String file) {
        super(id, name, new EgOType(EgOType.FILE, null));
        this.file = file;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public EgObject getPos() {
        return pos;
    }

    public void setPos(EgObject pos) {
        this.pos = pos;
    }

    public EgUser getUploader() {
        return uploader;
    }

    public void setUploader(EgUser uploader) {
        this.uploader = uploader;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

}
